package com.candy.th6;

public class Client1 extends Thread{
    //共享资源（银行账户）
    private Bank bank;

    public Client1(String name, Bank bank) {
        super(name);
        this.bank = bank;
    }

    @Override
    public void run () {
        this.bank.ask();
    }
}
